{extend name='admin@main'}

{block name="button"}

{/block}

{block name="content"}

<div class="think-box-shadow">
    {include file='order/plate/index_search'}
	<div class="layui-tab layui-tab-card think-bg-white">
        <ul class="layui-tab-title notselect">
            <li data-type='' {if $Think.get.status eq 0} class="layui-this" {/if} data-open='{:url("")}?status=0&page=1'>全部</li>
            <li data-type="" {if $Think.get.status eq 1} class="layui-this" {/if} data-open='{:url("")}?status=1&page=1'>正常</li>
            <li data-type="" {if $Think.get.status eq 2} class="layui-this" {/if} data-open='{:url("")}?status=2&page=1'>已取消</li>
            <li data-type="" {if $Think.get.status eq 3} class="layui-this" {/if} data-open='{:url("")}?status=3&page=1'>部分退款</li>
            <li data-type='' style="float:right;">共 {$page.total} 条记录</li>
        </ul>
    </div>
    <div class="layui-obj">     
        {if auth("admin/order.plate/batch_print")}
        <button data-modal-special='{:url("batch_print")}' data-title="制版状态" class='layui-btn layui-btn-sm layui-btn-primary'>制版状态</button>
        {/if}       
    </div>
    <table class="layui-table margin-top-0" lay-skin="line" data-export-name='table' lay-filter="tecd">
        {notempty name='list'}
        <thead>
        <tr>
            <th class='list-table-check-td think-checkbox'>
                <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
            </th>
            <th class='text-left nowrap'>订单号</th>
            <th class='text-left nowrap'>所属店铺</th>
            <th class="text-left">下单日期</th>                           
            <th class='text-left'>制版状态</th>
            <th class="text-left">制版者姓名</th>                        
            <th class="text-left">制版完成日期</th>
            <th class="text-left">制版标记</th> 
            <th class="text-left">订单状态</th>
            <th class="text-left">胸口图片</th>
            <th class="text-left">左袖口图片</th>
            <th class="text-left">右袖口图片</th>
            <th class="text-left">制版备注</th>
            <th class="text-left">刺绣/发货备注</th>
            <th>操作</th>
        </tr>
        </thead>
        {/notempty}
        <tbody>
        {foreach $list as $key=>$vo}
        <tr data-dbclick>
            <td class='list-table-check-td think-checkbox'>
                <input class="list-check-box" value='{$vo.id}' type='checkbox'>
            </td>
            <td class='text-left nowrap'>
            	{$vo.code|default=''}
            	{if $vo.urgent eq 2}
            	<span class="layui-badge layui-bg-red">急</span>
            	{/if}
            </td>
            <td class='text-left nowrap'>{$vo.shop_name|default=''}</td>
            <td class='text-left nowrap'>
                {$vo.create_order_at|default=''}
            </td>                   
            <td class='text-left nowrap'>
                {$vo.is_print_cn|default=''}
            </td>
            <td class='text-left nowrap'>
                {$vo.print_name_cn|default=''}
            </td>   
            <td class='text-left nowrap'>
                {$vo.print_end_at|default=''}
            </td>
            <td class='text-left nowrap'>
                {$vo.print_mark|default=''}
            </td>
             <td class='text-left nowrap'>
            	{if $vo.status eq 1}
            	<span class="color-green">{$vo.status_cn|default=''}</span>
                {elseif $vo.status eq 2}
                <span class="color-red">{$vo.status_cn|default=''}</span>
                {elseif $vo.status eq 3}  
                <span style="color: #FFB800;">{$vo.status_cn|default=''}</span>
                {/if}
            </td>
            <td class='text-center nowrap'>
            	{if $vo.chest_pic eq true}
                <img alt="icon" data-tips-image style="height:100px; width: 100px;border: 1px solid #e6e6e6; display: block;" src="{$vo.chest_pic|default='__ROOT__/static/admin/img/jcfw.png'}"/>
                {/if}
            </td>
            <td class='text-center nowrap'>
            	{if $vo.sleeve_pic eq true}
                <img alt="icon" data-tips-image style="height:100px; width: 100px;border: 1px solid #e6e6e6; display: block;" src="{$vo.sleeve_pic|default='__ROOT__/static/admin/img/jcfw.png'}"/>
                {/if}
            </td>
            <td class='text-center nowrap'>
            	{if $vo.right_sleeve_pic eq true}
                <img alt="icon" data-tips-image style="height:100px; width: 100px;border: 1px solid #e6e6e6; display: block;" src="{$vo.right_sleeve_pic|default='__ROOT__/static/admin/img/jcfw.png'}"/>
                {/if}
            </td>
			<td class='text-left nowrap'>
				<textarea name="" rows="5" cols="20"  disabled="disabled" style="color: red;font-weight: bold;">{$vo.plate_desc|default=''}</textarea>               
            </td>
            <td class='text-left nowrap'>
				<textarea name="" rows="5" cols="20"  disabled="disabled" style="color: red;font-weight: bold;">{$vo.desc|default=''}</textarea>               
            </td>
            <td class='text-left nowrap'>            	
            	{if auth("admin/order.plate/browse")}
                <a data-dbclick data-title="查看订单" class="layui-btn layui-btn-warm layui-btn-sm" data-open='{:url("browse")}?id={$vo.id}'>查 看</a>
                {/if}
                {if auth("admin/order.plate/edit")}               	
                	<a data-dbclick data-title="编辑订单" class="layui-btn layui-btn-sm" data-open='{:url("edit")}?id={$vo.id}'>编 辑</a>               	
                {/if}
                {if auth("admin/order.plate/is_print")}
                <a data-dbclick data-title="制版状态" class="layui-btn layui-btn-normal layui-btn-sm" data-modal='{:url("is_print")}?id={$vo.id}'>制版状态</a>
                {/if}
            </td>
        </tr>
        {/foreach}
        </tbody>
    </table>
    {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}


</div>
<style>
    .layui-obj{
        margin-top: 10px!important;
    }
    .layui-tab{
        margin-top: 10px!important;
    }
	.layui-table td, .layui-table th {
		box-sizing: border-box;
	}
</style>
<script>

</script>
{/block}

